Skip to content

Add option to write log files to output directory - #180

Open
dpsarmie wants to merge 4 commits into
NOAA-EMC:dev/emcfrom
dpsarmie:feature/logging_to_outputdir
Open

Add option to write log files to output directory#180
dpsarmie wants to merge 4 commits into
NOAA-EMC:dev/emcfrom
dpsarmie:feature/logging_to_outputdir

Conversation

@dpsarmie

Copy link
Copy Markdown

There was a feature request made by NCO for GFSv17 production to have the logs moved to the output folder for each component. This change was made for production (18ffcb1), however the production changes had no way to allow the user to turn the feature on or off. This PR will add a new option to ufs.configure that will allow the user to specify whether or not they want the logs to be written to the MOM6 output directory or the run directory. The default (if the option is not declared) will be to have the logs in the run directory.

@jiandewang
jiandewang self-requested a review July 16, 2026 14:54
@jiandewang

jiandewang commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

@dpsarmie we will use squash merge as it has 4 mini commits which won't be accepted by MOM6 main repo.

@dpsarmie

Copy link
Copy Markdown
Author

@dpsarmie we will use squash merge as it has 4 mini commits which won't be accepted by MOM6 main repo.

Ok, I or the EPIC CMs will tag you once this PR and the UFS WM PR are picked up and tested.

character(len=16) :: timestr
character(len=256) :: fname
character(len=256) :: subname='MOM_cap:(outputlog_run)'
character(len=256), allocatable :: logdir

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is logdir allocatable?

Also, instead of having a check for if you want it going someplace else, why not have a config variable which would provide the location; if none were provided it would default to the cwd?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants